<?php

// include Psa_Dully class
include '../scripts/Psa_Dully.class.php';

// make new Psa_Dully object and set folder with templates
$Psa_Dully = new Psa_Dully('templates');

// put content of fetched template template2.tpl in $var1
$var1 = $Psa_Dully->fetch('template2.tpl');

// assign values var1 and var2
$Psa_Dully->assign('var1',$var1);
$Psa_Dully->assign('var2','bla bla bla');

// display fetched template template1.tpl
$Psa_Dully->display('template1.tpl');

?>